



<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

    <title>支付成功</title>
    <meta name="description" content="" />
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="email=no" />
    <link rel="stylesheet" type="text/css" href="/css/paysuccess.css" />
    
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
    wx.config(<?php echo $js->config(array('chooseWXPay',), false) ?>);

    wx.ready(function(){
        wx.chooseWXPay({
            timestamp: <?= $config['timestamp'] ?>,
            nonceStr: '<?= $config['nonceStr'] ?>',
            package: '<?= $config['package'] ?>',
            signType: '<?= $config['signType'] ?>',
            paySign: '<?= $config['paySign'] ?>', // 支付签名
            success: function (res) {
                
            }
        });


    });


    function closeWin()
    {
        WeixinJSBridge.invoke('closeWindow',{},function(res){  });
    }

</script>
</head>

<body>
    <div class="content">
        <div class="logo">
            <img src="/images/logo.png">
            <div class="prompt-font">发起支付...</div>
        </div> 
        <div class="alert-font">
            <p>如果没有完成支付，您可以重新扫码发起支付</p>
        </div>
        <div class="success-button" onclick="closeWin()">
            确定
        </div>
    </div>
</body>
<script type="text/javascript"  src="/js/paysuccess.js"></script>

</html>

